<?php

namespace App\Models;

/**
 * App\Models\IndexComment
 *
 * @property int $id 自增长ID
 * @property string $comment_id 评论ID
 * @property string $reply_id 回复ID
 * @property string $to_reply_id 如:回复(A)的是回复(B) 则为B的回复id
 * @property string $target_id 评论的目标ID
 * @property int $target_type 评论目标类型：1文章，2笔记，5动态
 * @property string $user_id 发起评论/回复用户ID
 * @property string $to_user_id 被回复用户ID
 * @property int $type 类型，3评论，4回复
 * @property int $is_deleted 删除状态，0正常，1删除
 * @property int $is_shield 是否屏蔽，0正常，1屏蔽
 * @property int $is_view 是否可见，0否1是
 * @property int $have_author_reply 是否有作者回复，0否1是
 * @property int $hot 热度，点赞+1
 * @property \Illuminate\Support\Carbon $created_at 创建时间戳
 * @property \Illuminate\Support\Carbon $updated_at 更新时间戳
 * @method static \Illuminate\Database\Eloquent\Builder|IndexComment newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|IndexComment newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|IndexComment query()
 */
class IndexComment extends BaseModel
{

    protected $table = "index_comment";
    protected $primaryKey = "comment_id";
    protected $keyType = "string";
    public $timestamps = true;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'created_at' => 'timestamp',
        'updated_at' => 'timestamp',
    ];

    /**
     * select columns
     * @var array
     */
    public $fields = [];

}
